import request from '@/utils/requestExam'

// 查询成绩列表
export function listScoreInfo(query) {
  return request({
    url: '/api/uf/boostor/exam/score/ExamScoreInfoRest/searchByPage/v1',
    method: 'post',
    data: query
  })
}

// 查看个人所需要批阅和已批阅的试卷
export function personReadPaper(query) {
  return request({
    url: '/api/uf/boostor/exam/score/ExamScoreInfoRest/person-read-paper/v1',
    method: 'post',
    data: query
  })
}

//根据成绩ID查询成绩详情信息
export function getExamScoreByScoreId(scoreId){
  return request({
    url: "/api/uf/boostor/exam/score/ExamScoreInfoRest/selectByScoreId/" + scoreId,
    method: "get"
  })
}

// 下载成绩导入模板
export function importTemplate() {
  return request({
    url: '/api/uf/boostor/exam/score/ExamScoreInfoRest/importTemplate/v1',
    method: 'get'
  })
}

// 导出成绩
export function exportScore(data) {
  return request({
    url: '/api/uf/boostor/exam/score/ExamScoreInfoRest/export/v1',
    method: 'post',
    data: data
  })
}
